<%= form_for @club do |f| %>
  <% if @club.errors.any? %>
  <div id="error_explanation">
    <h2><%= pluralize(@club.errors.count, "error") %> while tring to save:</h2>
    <ul>
    <% @club.errors.full_messages.each do |msg| %>
      <li><%= msg %></li>
    <% end %>
    </ul>
  </div>
  <% end %>
  <p>
    <%= f.label :name %><br>
    <%= f.text_field :name %>
  </p>
 
  <p>
    <%= f.submit %>
  </p>
<% end %>